2023-12-19-00
1: Increase the key value and status macro address, #2038, which is readable and writable. It needs to be cleared before use.


Хранит код последней нажатой или отпущеной клавиши. Поэтому перед использованием, её надо обнулить. 
Нажатия и отпускания имеют разные коды. 

Примеры:
------------------
Показ кода любой клавиши
#2038=0
N1
#1510=#2038 ;Передаём код клавиши и её состояния (нажата или отпущена)
#1503 = 1(Код кнопки и состояния:[%.0f])
G04 P20
GOTO1
-----------------------
;Альтернативный метод постановки на паузу из УП. Возобновление - START.
#2038=0 ；Обнуляем
WHILE [#2038 NE 65864] DO1; When the start key is pressed = 65864, and when released = 328.
G04 P1
END1
----------------------
Показывает строку состояния, до нажатия любой клавиши
#1510=0.3456    ;variable N.1
#1511=10.5      ;variable N.2
#2038=0
WHILE #2038==0 DO30
#1503=-3000(Размеры: X=[%.3f] || Y=[%.3f]) 
G4P100
END30

Bit0-bit15: key value, refer to the table, the actual key value = Table value -1000;
Bit16: Pressure status; 0: Loosen 1: Press
For example: use the macroogram to simulate the reset button
Bit16 =1；
Bit0-bit15= (1327-1000)=327;
#2038=1*2^16+327=65536+327=65863;